package com.ciwong.epaper.modules.epaper.bean;

import com.ciwong.mobilelib.bean.BaseBean;
import com.google.gson.Gson;

import java.lang.reflect.Type;
import java.util.List;

/**
 * Created by neo on 2016/8/8.
 */
public class VideoExplainWorkAnswers  extends WorkAnswers {


//    private static final long serialVersionUID = -4891823207660677571L;
    /**
     * 掌握状态：0:未标记 1:掌握 2:未掌握
     */
    private int masteredStatus;

    /**
     * 总学习次数(包含文字解析,视频讲解,举一反三)
     */
    private  int learnCount;

    /**
     * 学习记录
     */
    private  List<LearnRecord> learnRecods;






    public int getMasteredStatus() {
        return masteredStatus;
    }

    public void setMasteredStatus(int masteredStatus) {
        this.masteredStatus = masteredStatus;
    }

    public int getLearnCount() {
        return learnCount;
    }

    public void setLearnCount(int learnCount) {
        this.learnCount = learnCount;
    }

    public void setLearnRecods(List<LearnRecord> learnRecods) {
        this.learnRecods = learnRecods;
    }

    public List<LearnRecord> getLearnRecods() {
        return learnRecods;
    }

    //没有泛型就不需要下面这个?

//    @Override
//    public String toString()
//    {
//        return new Gson().toJson(this);
//    }
//
//    public String toJson(Class<Answer> clazz)
//    {
//        Gson gson = new Gson();
//        Type objectType = getType(Answer.class, clazz);
//        return gson.toJson(this, objectType);
//    }
//    @Override
//    public boolean equals(Object o)
//    {
//        return getVersionId() != null
//                && getVersionId().equals(((WorkAnswers) o).getVersionId());
//    }

}
